package com.hup.winHolderService.framework.exception;

import com.hup.winHolderService.framework.model.ExceptionResult.BaseResultException;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * msg=给用户看的异常消息
 * {@link HttpStatus#BAD_REQUEST}
 *
 * @author hugan
 * @date 2023/7/9
 */
public class AppMsgException extends RuntimeException implements BaseResultException {

    @Getter
    private HttpStatus status = HttpStatus.BAD_REQUEST;

    public AppMsgException(String message) {
        super(message);
    }

    @Override
    public String getRespMessage() {
        return getMessage();
    }
}
